import { Switch, Route } from 'react-router-dom'
function RouteView(props) {
    return (

        < Switch >

            {
                props.routes.map(item => {
                    return <Route key={item.path} path={item.path} component={item.component}></Route>
                })
            }
        </Switch >
    )

}
export default RouteView;